package com.aiwei.tdjk.dao.extend;

import com.aiwei.tdjk.dao.mbg.UserMapper;
import com.aiwei.tdjk.dto.request.GetUserPagerRequest;
import com.aiwei.tdjk.entity.User;

import java.util.List;


public interface UserExtendMapper extends UserMapper {
    /**
     * 获取分页列表
     * @param request
     * @return
     */
    List<User> find(GetUserPagerRequest request);

    /**
     * 获取总数
     * @param request
     * @return
     */
    int getTotalCount(GetUserPagerRequest request);
    /**
     * 通过用户所在组织查询组织员工
     * @param userId
     * @return
     */
    List<User> findUserByOrganization(long userId);


}